package cn.liwq.demo.web.controller;

import cn.liwq.demo.web.annotation.FooController;
import cn.liwq.demo.web.annotation.FooRequestMapping;
import cn.liwq.demo.web.annotation.FooRequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>Project: demo-common </p>
 * 
 * <p>Function:  </p>
 * 
 * <p>Description:  </p>
 * 
 * <p>Copyright: Copyright(c) 2018 Ucarinc </p>
 * 
 * <p>Company: Ucarinc </p>
 * 
 * @author weiqiang.li@ucarinc.com
 * 
 * @date 2018-08-24 13:50:11
 * 
 * @version 1.0
 */

@FooController
@FooRequestMapping("/foo/liwq")
public class MyFooController {

    @FooRequestMapping("/sayhello")
    public String sayHello(HttpServletRequest request, HttpServletResponse response, @FooRequestParam String name) {
        System.out.println(name);
        return "hello " + name;
    }
}
